package com.weeego.web.base;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class FormatDate {
	public static String getNowTime() {
		return String.format("%1$tY%1$tm%1$te%1$tH%1$tM%1$tS", Calendar
				.getInstance());

	}
	public static String getNowDay() {
		return String.format("%1$tY%1$tm%1$te", Calendar
				.getInstance());

	}
 

 

	public static String toLongTimeString(Date dt) {
		SimpleDateFormat myFmt = new SimpleDateFormat("HH mm ss SSSS");
		return myFmt.format(dt);
	}

	public static String toShortTimeString(Date dt) {
		SimpleDateFormat myFmt = new SimpleDateFormat("yy/MM/dd HH:mm");
		return myFmt.format(dt);
	}
}
